package com.macrounion.atv.controller.api;

import com.macrounion.atv.service.entity.ext.CurrentDataExt;
import com.macrounion.base.annotation.Auth;
import com.macrounion.base.service.dto.PageRespDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.macrounion.atv.processor.CurrentDataProcessor;
import com.macrounion.atv.service.entity.CurrentData;
import com.macrounion.atv.service.entity.User;
import com.macrounion.atv.service.service.CurrentDataService;
import com.macrounion.base.controller.api.BaseApiController;

@RestController
@RequestMapping("/api/currentdata")
public class CurrentDataApiController extends BaseApiController<CurrentData, CurrentData, CurrentDataProcessor, CurrentDataService, CurrentData,User> {
    @ApiOperation("扩展分页查询")
    @PostMapping({"/requestPageExt"})
    @Auth(
            requireAuth = true,
            actionCode = {"view"}
    )
    public PageRespDto<CurrentDataExt> requestPageExt(@RequestBody CurrentDataExt req){
        return processor.requestPageExt(req);
    }
}